package top.xinsix.est.service;
import top.xinsix.est.dto.MaintainOrderDto;
import top.xinsix.est.pojo.MaintainOrder;
import java.util.Date;
import java.util.List;
import java.util.Map;
import top.xinsix.est.dto.Page;
import top.xinsix.est.req.AppointmentReq;

/**
* Created by shang-pc on 2015/11/7.
*/
public interface MaintainOrderService {

    public MaintainOrder getMaintainOrderById(Long id);

    public List<MaintainOrder>	getMaintainOrderListByMap(Map<String,Object> param);

    public Integer getMaintainOrderCountByMap(Map<String,Object> param);

    public Integer qdtxAddMaintainOrder(MaintainOrder maintainOrder);

    public Integer qdtxModifyMaintainOrder(MaintainOrder maintainOrder);

    public Integer qdtxDeleteMaintainOrderById(Long id);

    public Integer qdtxBatchDeleteMaintainOrder(String ids);

    public Page<MaintainOrder> queryMaintainOrderPageByMap(Map<String,Object> param,Integer pageNo,Integer pageSize);

    /**
     * 根据订单编号查询维修订单详情
     * @param orderNo 订单编号
     * @return 维修订单详情
     */
    public MaintainOrderDto getDetailByOrderNo(String orderNo);

    /**
     * 下单
     * @param appointmentReq 预约对象
     * @param evaluateId 评估ID
     * @param modelId 商品型号ID
     * @return 订单号
     */
    public String submit(AppointmentReq appointmentReq, Long evaluateId, Long modelId);
}
